<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <link rel="stylesheet" href="./css/basic.css" />
    <style>
      .container_row {
        display: flex;
        /* flex-direction: row-reverse; */
        justify-content: space-around;
        background-color: aqua;
        height: 50vh;
        
      }
      .row_item {
        width: 10vw;
        height: 100px;
        background-color: pink;
        text-align: center;
        /* 第一种 */
        /* line-height: 100px; */
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 30px;
        color: white;
        margin: 10px;
      }
      /* 后面需要有空格代表后代的子元素 */
      .container_row :first-child{
        flex: 1;
      }
      .container_row :last-child,:nth-child(3){
        flex: 1;
      }
      /* 子元素选择器
      后面没有是指的兄弟中的第几个 */
      .row_item:nth-child(3) {
        align-self: end;
      }
    </style>
  </head>
  <body>
    <h1>横向布局</h1>
    <div class="container_row">
        <div class="row_item">1</div>
        <div class="row_item">2</div>
        <div class="row_item">3</div>
        <div class="row_item">4</div>
        <div class="row_item">5</div>
        <div class="row_item">6</div>
    </div>
  </body>
</html>
